package com.yhx.utils;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class AgeUtils {
    public static List<Integer> getAges(String age){
        String[] split = age.split("-");
        List<String> strings = Arrays.asList(split);
        ArrayList<Integer> list = new ArrayList<>();
        for (String string : strings) {
            list.add(Integer.parseInt(string));
        }
        return list;
    }
}
